package com.power.sifa.correction.model.enumeration;

/**
 * 社矫预警处置状态常量类
 */
public enum St_workEnum {

    UNDO(6402200, "未处置"),
    DOING(6402201, "处置中"),
    DONE(6402202, "处置完成");

    private int value;
    private String statusName;

    St_workEnum(int value, String statusName) {
        this.value = value;
        this.statusName = statusName;
    }

    public int getValue() {
        return value;
    }

    public String getStatusName() {
        return statusName;
    }

    public static String getStatusNameByValue(int value) {
        for (St_workEnum status : St_workEnum.values()) {
            if (status.getValue() == value) {
                return status.getStatusName();
            }
        }
        return null;
    }


}
